from examples.quantitative_strategies import MovingAverageCrossover

# 创建策略
strategy = MovingAverageCrossover(20, 50)

# 回测
result = strategy.backtest(data)
print(f"总收益: {result['total_return']:.2%}")

